<template>
  <div>
  <!-- <el-breadcrumb separator="/">
      <el-breadcrumb-item v-for="(v,i) in menuStore.menuPath" :key="i">
    {{ getTextByIndexPath(v) }}
    </el-breadcrumb-item>
    </el-breadcrumb> -->
    <h2>{{getTextByIndexPath(menuStore.menuPath.slice(-1))  }}</h2>
  </div>
</template>

<script setup>
import { useMenuStore } from "@/stores/menu"; //引入保存地址的pinia文件
import { getTextByIndexPath } from "@/utils/constant";
var menuStore = useMenuStore();
</script>

<style>
h2{
  position: absolute;
  top: 46px;
  background-color: rgba(78, 171, 254, 1);
  color: white;
  padding: 0 40px;
  border-radius: 15px;
  left: 288px;
}
</style>